package com.qf.test;

import com.qf.service.UserService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/8/26 19:25
 */
public class Demo {
    @Test
    public void advice() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = context.getBean(UserService.class);
        int i = userService.addUser();
        System.out.println("i = " + i);
    }
}
